x86/mem-sharing: Don't leave the altp2m lock held when nominating a page
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Feb 2019 10:28:45 +0000 (11:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:28:45 +0000 (11:28 +0100)
commit7d1bd985ebd4c1473c4dfd50b6d3a33c8e1b1a93
tree5ee86e9054476b3199043aeac5dea220ec2cbc6d
parentd8b2418573fb0c3f2a192620254d08826807d58a
x86/mem-sharing: Don't leave the altp2m lock held when nominating a page

get_gfn_type_access() internally takes the p2m lock, and nothing ever unlocks
it.  Switch to using the unlocked accessor instead.

This wasn't included in XSA-277 because neither mem-sharing nor altp2m are
supported.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: d6e02850d3b45c9658457214a749cc48097bdef4
master date: 2018-11-22 17:58:46 +0000
xen/arch/x86/mm/mem_sharing.c